<div class="artCon" style="padding:10px;">
	<div class="middleArt">
	<form class="form-horizontal" id="sqlEditForm" data-toggle="form" data-callback="doTableMsg" action="/${orgi}/dm/database/sqlparamdo.html" method="post">
	<input type="hidden" name="databaseid" value="${databaseid!''}"/>
	<input type="hidden" name="tabledirid" value="${dirid!''}"/>
	<input type="hidden" name="id" value="${table.id!''}"/>
		<div class="artMain">
			<div class="mainCenter">
				<fieldset class="control-group">
					<div class="controls">
						<label><input value="1" id="userdate" onchange="updateDateParam()" name="userdate" type="checkbox" <#if params?? && params.userdate == true>checked="checked" data-check="true"<#else>data-check="false"</#if>>将参数格式化为日期</label> 
					</div>
				</fieldset>
				<fieldset class="control-group" id="formatdate" style="<#if params?? && params.userdate == true>display:;<#else>display:none;</#if>">
					<label class="control-label" for="name">默认的日期格式：</label>
					<div class="controls">
						<input class="required span2" maxlength="50" value="${params.format!'yyyy-MM-dd'}"
							 id="format" name="format" type="text"> 
						<span
							class="help-inline"></span><i class="inputip">*</i>
					</div>
				</fieldset>
				<#if params?? && params.values??>
				<#list params.values as param>
				<fieldset class="control-group">
					<label class="control-label" for="name">${param.name!''} ：</label>
					<div class="controls">
						<input class="required span2" maxlength="50" value="${param.value!''}"
							 id="${param.name!''}" name="${param.name!''}" type="text"> 
						<span
							class="help-inline"></span><i class="inputip">*</i>	 <a href="javascript:$('#${param.name!''}').val('T')"><img src="/assets/images/top_icon11.png"></a>
					</div>
				</fieldset>
				</#list>
				</#if>
			</div>
		</div>
		<div class="mainCenter">
		</div>
		<div class="bottomBg">
			<div class="btnWrap">
			    <button class="subButtonStyle" type="submit" >确定</button> 
			   <!--<a onclick="loadURL('/${orgi}/dm/database/sqledito.html',$('#temp_div') , null)" href="javascript:void(0)" class="btnStyle1">确定</a>  --> 
				<input type="button" onclick="closeR3ArtDialog()" class="cancelButtonStyle" value="取消"/>
			</div>
		</div>
	</form>
	</div>
</div>
<script type="text/javascript">
	function updateDateParam(){
		if($("#userdate").attr("data-check")=="true"){
			$("#userdate").attr("data-check","false");
			$('#formatdate').hide();
		}else{
			$("#userdate").attr("data-check","true");
			$('#formatdate').show();
		}
	}
	$(function(){
		$(".mainCenter ul li").hover(function(){
			$(this).addClass("cur").siblings("li").removeClass("cur");
		},function(){
			$(this).removeClass("cur");	
		});
	})
</script>
